// 版权归 瞄你个汪 所有。使用本代码应遵守相关法律法规和Apache 2.0开源许可要求。
package top.geeke.database.seed;

import top.geeke.constants.AppConstPool;
import top.geeke.entity.SysDictType;
import top.geeke.toolkit.supertable.seed.SuperSeedData;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 系统字典类型表种子数据
 * </p>
 *
 * @author 瞄你个汪
 * @since 2024/5/26 8:13
 */
public class SysDictTypeSeedData implements SuperSeedData<SysDictType> {
    @Override
    public List<SysDictType> getSeedData() {
        return new ArrayList<SysDictType>(){{
            add(newInstance(1300000000101L, "代码生成控件类型", "code_gen_effect_type", 100, "代码生成控件类型", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000102L, "代码生成查询类型", "code_gen_query_type", 100,"代码生成查询类型", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000103L, "代码生成Java类型", "code_gen_java_type",100, "代码生成Java类型", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000104L, "代码生成方式", "code_gen_create_type",100, "代码生成方式", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000105L, "代码生成基类", "code_gen_base_class",100, "代码生成基类", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000106L, "代码生成打印类型", "code_gen_print_type",100, "代码生成打印类型", AppConstPool.PRIMARY_ID));
            add(newInstance(1300000000107L, "机构类型", "org_type", 100,"机构类型", AppConstPool.PRIMARY_ID));
        }};
    }

    public SysDictType newInstance(Long id, String name, String code, int orderNo, String remark, Long tenantId) {
        SysDictType dictType = new SysDictType();
        dictType.setId(id);
        dictType.setTypeName(name);
        dictType.setTypeCode(code);
        dictType.setOrderNo(orderNo);
        dictType.setRemark(remark);
        dictType.setTenantId(tenantId);
        return dictType;
    }
}
